<?php if(count($comments)): ?>
<h1><?php echo __('arvamused') ?></h1>
<?php foreach($comments as $comment):?>
<div class="chatbox">
	<div class="cname">
		<p><a href="#"><?php echo $comment['name'] ?></a></p>
	</div>
	<div class="cosa">
		<img src="/enermaatik/img/razarv.png" width="1" height="12" alt=""/>
	</div>
	<div class="cdate"><p><?php echo date('d.m.Y', strtotime($comment['created_at'])) ?></p></div>
	<div class="ctime"><p><?php echo date('H:i', strtotime($comment['created_at'])) ?></p></div>

	<div class="cosa">
		<img src="/enermaatik/img/razarv.png" width="1" height="12" alt=""/>
	</div>
	<div class="crate">
		<div class="rating_set">
		<img src="/enermaatik/img/star.png" alt="" height="14" width="14">
		<img src="/enermaatik/img/star.png" alt="" height="14" width="14">
		<img src="/enermaatik/img/star.png" alt="" height="14" width="14">
		<img src="/enermaatik/img/star.png" alt="" height="14" width="14">
		<img src="/enermaatik/img/star.png" alt="" height="14" width="14">
		<div class="clear"></div>

		</div>
		<div class="clear"></div>
	</div>
	<div class="clear"></div>
	<p><?php echo $comment['message'] ?></p>
</div>
<?php endforeach;?>
<?php endif; ?>